package com.unionpay.mpds.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import java.util.Map;
import com.unionpay.mpds.util.Pager;
import com.unionpay.mpds.dao.PbocicDao;
import com.unionpay.mpds.model.Pbocic;
import com.unionpay.mpds.service.PbocicService;

/**
 * 
 * @description 自动生成 service
 *
 */
@Service
public class PbocicServiceImpl extends BaseServiceImpl implements PbocicService {
	
	@Autowired
	private PbocicDao pbocicDao;
	
	
	
	
	
	//====================== 基本 C R U D 方法  ===========================
	public Pbocic get(String id) {
		return pbocicDao.get(id);
	}
	
	public List<Pbocic> getAll() {
		return pbocicDao.findAll();
	}
	
	public List<Pbocic> findByParam(int size, Map<String, Object> params) {
		return pbocicDao.findListByParamMap(size, params);
	}
	
	public Pager<Pbocic> findPager(int pageNo, int pageSize, Map<String, Object> params) {
		return 	pbocicDao.findByParamMap(pageNo, pageSize, params);
	}
	
	public void save(Pbocic entity) {
		pbocicDao.save(entity);
	}
	
	public void update(Pbocic entity) {
		pbocicDao.update(entity);
	}
	
	public void delete(String id) {
		pbocicDao.delete(id);
	}
	
}

